<?php

namespace ApiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * CompanyMedal
 *
 * @ORM\Table(name="company_medal", options={"comment":"勋章表"})
 * @ORM\Entity
 */
class CompanyMedal
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var \ApiBundle\Entity\Company
     *
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\Company")
     * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
     */
    private $company;

    /**
     * @var \ApiBundle\Entity\Medal
     *
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\Medal")
     * @ORM\JoinColumn(name="medal_id", referencedColumnName="id")
     */
    private $medal;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created_at", type="datetime", options={"comment":"创建时间"})
     */
    private $createdAt;

}
